import http from "@/request"
export const getDictList = (url: string) => {
    return http.get(url).then((res) => {
        return {
            listData: res.data,
            mapData: res.data.reduce((acc, cur) => {
                acc[cur.code] = cur.name
                return acc
            }, {}),
        }
    })
}